{% extends "base.html" %} {% from "_when.html" import when_field with context %} {% block title %}Finish up Β· {{ app_name }}{% endblock %} {% block body %}
{{ items|map(attribute='name')|join(' Β· ') }} Β· on for {{ span|dur }} {%- if b.locked %} Β· π caged{% endif %}
{#- π΄ A REFUSED SAVE COMES BACK FILLED IN (#40, web/kept.py): `kv` reads what the refused form sent β from this form's own action, or from the "log it as a past bout" button, which posts the same fields elsewhere. Rendered server-side, so the words are in the page whether or not JavaScript runs; data-kept tells app.js to leave this form alone. The error is the page's own flash, right above β this form is the top of the page. -#} {%- set past_action = '/kit/bout/' ~ b.id ~ '/as-past' -%} {%- set src = past_action if kept.on(past_action) else action -%} {%- macro kv(name, default='') -%}{{ kept.value(src, name, default) }}{%- endmacro -%} {% endblock %}